package Java.com;

public class ExampleMinNumber {
	public static void main(String[] args) {
		int a = 111;
		int b = 125;
		int c = getMin(a, b);
		System.out.println("最小值 = " + c);
	}

	/**
	 * 返回两个int数值的最小值
	 */
	public static int getMin(int n1, int n2) {
		int min;
		if (n1 > n2)
			min = n2;
		else
			min = n1;
		return min;
	}
}
